﻿@model IEnumerable<xraiding.Models.CharactersGetAllForSearchResult>

@{
    ViewBag.Title = "Browsing all players";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Browsing all players</h2>

<table>
    <tr>
        <th>
            Name
        </th>
        <th>
            Faction
        </th>
        <th>
            Realm
        </th>
        <th>
            Primary Role
        </th>
        <th>
            Level
        </th>
        <th>
            Time Zone
        </th>
        <th>
            Time Availability
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CharacterName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Faction)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Realm)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PrimaryRole)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CharacterLevel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TimeZone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TimeAvailability)
        </td>
        <td>
            @Html.ActionLink("More Info", "PlayerDetail", "XRaiding", new { id=item.UserId }, null) 
        </td>
    </tr>
}

</table>
